
function matcher(type, val) {
    
}

function yesOrNo(k) {
    if (['Y', 'N'].indexOf(k) < 0) {
        throw Error('值应该为Y或N')
    }
}

function zeroOrOne(k) {
    if (['0', '1'].indexOf(k) < 0) {
        throw Error('值应该为0或1')
    }
}

module.exports = {
    matcher,
    yesOrNo,
    zeroOrOne,
}